class Point{
	private int x,y;
    Point(int x,int y){
	this.x=x;
	this.y=y;
}
void setXY(int x,int y){
	this.x=x;
	this.y=y;
}
double getDistance(Point p){
	return Math.sqrt((x-p.x)*(x-p.x)+(y-p.y)*(y-p.y));
}
}

public class zy11 {
   public static void main(String[] args){
	   Point p1=new Point(0,0);
	   Point p2=new Point(3,4);
	   System.out.println(p1.getDistance(p2));
	   p2.setXY(6, 8);
	   System.out.println(p1.getDistance(p2));
}

}
